﻿using System;
using System.Collections.Generic;
using System.Text;

namespace PosHacker.Form
{
    public class FormSetScoringNo : POSForm
    {
        public FormSetScoringNo() { 
        }
        public FormSetScoringNo(string strOnClick, string viewQuestionsNum, string testKouseiId)
        {
            string[] res = this.ParseOnClick(strOnClick, "setQuestion(");

            this.scoringNo = res[0].Trim('\'').TrimStart('\'');
            this.maxMarks = res[1].Trim('\'').TrimStart('\'');

            this.request = "INITIAL";
            this.zoom = "1.0";
            this.requestPre = "";
            this.response = "";
            this.responsePre = "";
            this.showAnswer = "false";
            this.canelForward = "";
            this.commentXml = "";
            this.testKouseiId = testKouseiId;
            this.numberOfSet = "";
            this.mouseMarker = "";

            this.viewQuestionsNum = viewQuestionsNum;

        }

        public string request { get; set; }
        public string requestPre { get; set; }
        public string response { get; set; }
        public string responsePre { get; set; }
        public string showAnswer { get; set; }
        public string zoom { get; set; }
        public string canelForward { get; set; }
        public string commentXml { get; set; }
        public string testKouseiId { get; set; }
        public string scoringNo { get; set; }
        public string maxMarks { get; set; }
        public string numberOfSet { get; set; }
        public string mouseMarker { get; set; }

        //number of markable questions(remaining times)
        public string viewQuestionsNum { get; set; }

    }
}
